﻿using blackhouse.Web;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

namespace blackhouse.WebNemo.Web {
    public class PhotoWatermark : ImageWatermark {

        private FileInfo file;

        public PhotoWatermark(FileInfo file, float percentWidth, float percentHeight, float percentPositionX, float percentPositionY)
            : base(percentWidth, percentHeight, percentPositionX, percentPositionY) {
                this.file = file;
        }

        public override System.IO.Stream GetImageStream() {
            return this.file.OpenRead();
        }

    }
}